package com.rayo.accesscontrollercopy.utils;


import com.rayo.accesscontrollercopy.config.GlobalVariables;

/**
 * Created by yanghaojie on 2017/3/17.
 */

public class NameFormatUtil {
    public static String showName(String fName, String lName) {
        StringBuilder sb = new StringBuilder(64);
        if (0 == GlobalVariables.getInstance().getmSystemData().getNameFormat()) {
            sb.append(fName);
            sb.append(" ");
            sb.append(lName);
        } else {
            sb.append(lName);
            sb.append(" ");
            sb.append(fName);
        }
        return sb.toString();
    }
}
